package com.shopyourstyle.activities;


import java.util.HashMap;

public class Data {
    private static String[] URLt1_p1={
    		"http://a1.twimg.com/profile_images/349012784/android_logo_small_normal.jpg",
    		"http://t3.gstatic.com/images?q=tbn:ANd9GcTwHvORhcOamRG-bsYh4MvmIvQkwBSxJr27CsV2UoMaH0Hfr8Sn",
    		"http://t1.gstatic.com/images?q=tbn:ANd9GcTZaYkwAmLkJxcGQbmBknw-qRk1UgMmMUfM34fSorr2SHPpFROZ",
    		"http://www.csie.ntu.edu.tw/~b97066/bag.jpg",
    		"http://www.csie.ntu.edu.tw/~b97066/bag.jpg",
    		"http://www.csie.ntu.edu.tw/~b97066/bag.jpg"
    };
    private static int[] PRICEt1_p1={
		1200,3000,5000,4000,2250,1120
	};
    private static String[] NAMEt1_p1={
		"bag1","bag2","bag3","bag4","bag5","bag6"
	};
    

    private static int[] COMMENTNUMt1_p1 = {2,3,4,5,6,7};
    private static int[] FITNUMt1_p1 = {1,4,2,5,6,3};
    private static String[] URLp1_5={
    "http://t2.gstatic.com/images?q=tbn:ANd9GcTulFIzJYnUq30PfpUvO2MGMaDQ_SiKaYvqDtZ3ogM_ca5-qY6eHg",
    "http://pic.pimg.tw/jssportsline/49c3397c441fd.jpg",
    "http://yn.xinhuanet.com/auto/2006-11/27/xin_3611032715428752432975.jpg",
    "http://mag.udn.com/magimages/31/PROJ_ARTICLE/193_1114/f_118941_1.jpg",
    "http://mag.udn.com/magimages/31/PROJ_ARTICLE/199_4166/f_199584_1.jpg",
    "http://www.buycartv.com/uploads/part/11267753007471.jpg"
    };
    
    private static int[] PRICEp1_5={
    	120000,300000,500000,400000,225000,112000
    };
    private static String[] NAMEp1_5={
    	"car1","car2","car3","car4","car5","car6"
    };
    
    private static String[] URLp1_4={
        "http://3c.msn.com.tw/images/article/page/2009/090728/090728-001-33127.jpg",
        "http://luxury.ce.cn/pinpai/c/chanel/xpsjzx/200705/11/W020070511497012462823.jpg",
        "http://i1.ce.cn/luxury/pinpai/m/MONTBLANC/xpshj/200808/29/W020080829602430262161.jpg",
        "http://pic.pimg.tw/ichi/4a47324ab65c1.jpg",
        "http://big5.china.com/gate/big5/luxury.china.com/zh_cn/watch/news/11065469/20080222/images/14686987_2008022210594851747800.jpg",
        "http://img.businesstimes.com.hk/ct_articleimgs/9/9439-.jpg"
        };
        
        private static int[] PRICEp1_4={
        	1235000,3100000,5200000,4300000,2245000,1125000
        };
        private static String[] NAMEp1_4={
        	"watch1","watch2","watch3","watch4","watch5","watch6"
        };
        
        private static String[] URLp1_2={
            "http://pic.pimg.tw/stevellk/f44b228f78799ad17f14fae2f02bed07.jpg",
            "http://memeburn.com/wp-content/uploads/smart-tv.jpg",
            "http://www.engadget.com/media/2008/01/apple-tv-video-menu-1.jpg",
            "http://www.cuhkacs.org/~alanlee/blog/archives/images/it/sony_el_tv.jpg",
            "http://big5.ifeng.com/gate/big5/res.tech.ifeng.com/attachments/2010/03/16/rd_or_10d9a830e20eacd31fb26c9ba9bfa47b.jpg",
            "http://www.wired.com/images_blogs/gadgetlab/images/2008/06/27/mitsubishi_laser_tv.png"
            };
            
            private static int[] PRICEp1_2={
            	13500,31000,41000,35000,45000,120000
            };
            private static String[] NAMEp1_2={
            	"TV1","TV2","TV3","TV4","TV5","TV6"
            };


    private static ProductInfo[] GenInfoArray(String[] urls,String names[], int prices[], int cnums[], int fnums[]){
		ProductInfo[] infoArray = new ProductInfo[urls.length];
		for(int i = 0; i < infoArray.length; i++){
			infoArray[i] = new ProductInfo(urls[i], names[i], prices[i], cnums[i], fnums[i]);
		}
		return infoArray;
    }
    
	public static HashMap<String, ProductInfo[]> database = new HashMap<String, ProductInfo[]>();
	static{
		
		ProductInfo[] t1_p1 = GenInfoArray(URLt1_p1,NAMEt1_p1,PRICEt1_p1,COMMENTNUMt1_p1,FITNUMt1_p1);
		ProductInfo[] p1_2 = GenInfoArray(URLp1_2,NAMEp1_2,PRICEp1_2,COMMENTNUMt1_p1,FITNUMt1_p1);
		ProductInfo[] p1_5 = GenInfoArray(URLp1_5,NAMEp1_5,PRICEp1_5,COMMENTNUMt1_p1,FITNUMt1_p1);
		ProductInfo[] p1_4 = GenInfoArray(URLp1_4,NAMEp1_4,PRICEp1_4,COMMENTNUMt1_p1,FITNUMt1_p1);
		database.put("t1_p1",t1_p1);
		database.put("p1_5pic",p1_5);
		database.put("p1_4pic",p1_4);
		database.put("p1_2pic",p1_2);
	}
}
